package cn.tedu._06article.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserArticleParam {
    @ApiModelProperty(value = "文章标题", required = true)
    @NotBlank(message = "标题不能为空白")
    private String title;
    @ApiModelProperty(value = "文章内容", required = true)
    @Size(min = 10, max = 500, message = "文章内容必须在10-500个字符之间")
    private String content;
}
